// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '成品库存',
        name: 'FLH_FinishedProductModel',
        url: "/FLH_FinishedProductModel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductCode":"","ProductName":"","ProductType":"","Unit":"","Size":"","Status":"","Num":"","IsLock":"","CreateTime":""};
    const editFormOptions = [[{"title":"产品编码","required":true,"field":"ProductCode","type":"text"}],
                              [{"title":"产品名称","required":true,"field":"ProductName","type":"text"}],
                              [{"dataKey":"FLH_成品类型","data":[],"title":"类型","required":true,"field":"ProductType","type":"select"}],
                              [{"dataKey":"FLH_单位","data":[],"title":"单位","required":true,"field":"Unit","type":"select"}],
                              [{"title":"规格","required":true,"field":"Size","type":"text"}],
                              [{"dataKey":"FLH_成品状态","data":[],"title":"状态","required":true,"field":"Status","type":"select"}],
                              [{"title":"数量","required":true,"field":"Num","type":"number"}],
                              [{"dataKey":"FLH_锁定标识","data":[],"title":"锁定标识","required":true,"field":"IsLock","type":"radio"}],
                              [{"title":"添加时间","required":true,"field":"CreateTime","type":"datetime"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'Id',title:'唯一编码',type:'bigint',sort:true,width:110,readonly:true,require:true,align:'left'},
                       {field:'CreateUserId',title:'CreateUserId',type:'bigint',width:110,hidden:true,align:'left'},
                       {field:'UpdateUserId',title:'UpdateUserId',type:'bigint',width:110,hidden:true,align:'left'},
                       {field:'CreatedUserName',title:'CreatedUserName',type:'string',width:110,hidden:true,align:'left'},
                       {field:'UpdatedUserName',title:'UpdatedUserName',type:'string',width:110,hidden:true,align:'left'},
                       {field:'CreateTime',title:'添加时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'UpdateTime',title:'UpdateTime',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'IsDelete',title:'IsDelete',type:'sbyte',width:110,hidden:true,align:'left'},
                       {field:'RedundancyColumn1',title:'RedundancyColumn1',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn2',title:'RedundancyColumn2',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn3',title:'RedundancyColumn3',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn4',title:'RedundancyColumn4',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn5',title:'RedundancyColumn5',type:'string',width:120,hidden:true,align:'left'},
                       {field:'ProductCode',title:'产品编码',type:'string',width:110,require:true,align:'left'},
                       {field:'ProductName',title:'产品名称',type:'string',width:110,require:true,align:'left'},
                       {field:'ProductType',title:'类型',type:'string',bind:{ key:'FLH_成品类型',data:[]},width:110,require:true,align:'left'},
                       {field:'Unit',title:'单位',type:'string',bind:{ key:'FLH_单位',data:[]},width:110,require:true,align:'left'},
                       {field:'Size',title:'规格',type:'string',width:110,require:true,align:'left'},
                       {field:'Status',title:'状态',type:'string',bind:{ key:'FLH_成品状态',data:[]},width:110,require:true,align:'left'},
                       {field:'Num',title:'数量',type:'int',width:110,require:true,align:'left'},
                       {field:'IsLock',title:'锁定标识',type:'sbyte',bind:{ key:'FLH_锁定标识',data:[]},width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}